import request from '@/utils/request'
import { parseStrEmpty } from "@/utils/ruoyi";

// 查询场站单体点表配置
export function listCellPoint(stationId) {
  return request({
    url: '/system/station-cell-point/list?stationId=' + stationId,
    method: 'get'
  })
}

export function addCellPoint(data) {
  return request({
    url: '/system/station-cell-point/add',
    method: 'post',
    data: data
  })
}

export function updateCellPoint(data) {
  return request({
    url: '/system/station-cell-point/update',
    method: 'post',
    data: data
  })
}

export function delCellPoint(data) {
  return request({
    url: '/system/station-cell-point/del',
    method: 'post',
    data: data
  })
}

export function batchDelCellPoint(data) {
  return request({
    url: '/system/station-cell-point/batchDel',
    method: 'post',
    data: data
  })
}

export function batchUpdateCellPoint(data) {
  return request({
    url: '/system/station-cell-point/batchUpdate',
    method: 'post',
    data: data
  })
}

